package com.platform.module.user.service.impl;

import com.platform.module.user.service.AsyncTasksService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;

@Slf4j
@Service
public class AsyncTasksServiceImpl implements AsyncTasksService {
    @Override
    @Async("asyncPoolTaskExecutor")
    public <T> void async(Runnable runnable) {
        runnable.run();
    }
}
